﻿@using FFF.Test.Entity.FW.View;
@using Microsoft.AspNetCore.Http;
@{
    ViewData["Title"] = "班级表创建界面";
    Layout = null;
    ViewFWUser currentUserInfo = base.Context.Session.GetUserInfo();
}
 <input type="hidden" id="uuid" name="id">


<div data-toggle="topjui-layout" data-options="fit:true">
    <div data-options="region:'center',title:'',fit:true,border:false,bodyCls:'border_right_bottom'">
        <div data-toggle="topjui-tabs" data-options="fit:true,border:false">
            <div title="@L("基本信息")" data-options="iconCls:'fa fa-th'">
                <div class="topjui-fluid">
                    <fieldset>
                        <legend>@L("基本信息")</legend>
                    </fieldset>
                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("学院") </label>
                            <div class="topjui-input-block">
                                <input type="text" name="schoolTestGUID" id="myFormSchoolTestGUID"
                                       data-toggle="topjui-combotree"
                                       data-options="required:false,
                       prompt:'学院(树)',
                       onlyLeafCheck:true,
                       textField:'text',
                        url:'/api/services/app/TreeGrid/GetTreeGird?viewName=View_Demo_SchoolTest&nodeName=SchoolTestName',
                        expandUrl:'/api/services/app/TreeGrid/GetTreeGird?pid={id}&viewName=View_Demo_SchoolTest&nodeName=SchoolTestName',
                        getFatherIdsUrl:'/api/services/app/TreeGrid/GetFatherIds?id={id}&viewName=View_Demo_SchoolTest&nodeName=SchoolTestName',
                        queryParams:'schoolName:text',
                        onBeforeSelect: function (node) {
                         var opts = $(this).iTree('options');
                         if (opts.onlyLeafCheck) {
                            // 判断是否是叶子节点
                             var isLeaf = $(this).iTree('isLeaf', node.target);
                            if (!isLeaf) {
                                // 返回false表示取消本次选择操作
                                return false;
                            }
                         }
                       },
                       icons:[{
                            iconCls:'fa fa-remove',
                            handler: function(e){
                                $(e.data.target).iCombotree('clear');
                            }
                        }],
                        iconWidth:22">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("班级名称")</label>
                            <div class="topjui-input-block">
                                <input id="myFormClassTestName" type="text" name="classTestName" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("学院s") </label>
                            <div class="topjui-input-block">
                                <input type="text" name="schoolTestGUIDTes" id="myFormSchoolTestGUIDTes"
                                       data-toggle="topjui-combotree"
                                       data-options="required:true,
                       prompt:'学院s(树多选)多选',
                       id:'myFormSchoolTestGUIDTes',
                       multiple:true,
                       textField:'text',
                       onlyLeafCheck:true,
                       textField:'text',
                        url:'/api/services/app/TreeGrid/GetTreeGird?viewName=View_DemoSchoolTestTe&nodeName=SchoolTestTeName',
                        expandUrl:'/api/services/app/TreeGrid/GetTreeGird?pid={id}&viewName=View_DemoSchoolTestTe&nodeName=SchoolTestTeName',
                       expandAll:true,
                       onBeforeSelect: function (node) {
                         var opts = $(this).iTree('options');
                         if (opts.onlyLeafCheck) {
                            // 判断是否是叶子节点
                             var isLeaf = $(this).iTree('isLeaf', node.target);
                            if (!isLeaf) {
                                // 返回false表示取消本次选择操作
                                return false;
                            }
                         }
                       },
                       icons:[{
                            iconCls:'fa fa-remove',
                            handler: function(e){
                                $(e.data.target).iCombotree('clear');
                            }
                        }],
                        iconWidth:22">
                            </div>
                        </div>
                    </div>

             
                </div>
            </div>
            @if (!string.IsNullOrEmpty(base.Context.Request.Query["uuid"]))
            {
                 @*<div title="@L("Iframe展示")" data-options="iconCls:'fa fa-th',border:true,iframe:true,disabled:false,
                        content:'<iframe src=\'/Demo/ProTaskDelay/ProTaskDelayIndex?classTestGUID=@(base.Context.Request.Query["uuid"])&&mode=@(base.Context.Request.Query["mode"])\' scrolling=\'auto\' frameborder=\'0\' style=\'width:100%;height:96%;\'></iframe>'">
                </div>*@
            }
            @*<div title="@L("选填信息")" data-options="iconCls:'fa fa-th'">
                    <div class="topjui-fluid">
                        <fieldset>
                            <legend>@L("扩展信息")</legend>
                        </fieldset>
                    </div>
                </div>*@
        </div>
    </div>
</div>

<!--自定义修改,尽量不要改框架的代码,修改全放这里,如果要修改框架代码,尽量在这里写个方法,在框架调用-->
<script>
var demoClassTestEdit={
    queryObj: $.dm.getQueryObj(), // URL的参数
    buInfo: $.dm.getBuInfo(), // 门店信息
    userInfo: $.dm.getUserInfo() // 用户信息
}
</script>

